eventTestSuiteEnd = {type, suite ->
  new File(testReportsDir, "plain").eachFileMatch(~/.*Tests\.txt/) { file ->
    file.withReader("UTF-8") {reader ->
      reader.readLine()
      def line = reader.readLine()
      (line =~ /.*, Failures: (\d), Errors: (\d), .*/).each {m0, m1, m2 ->
        if (m1 == "0" && m2 == "0") return
        println "== ${file.name} =============================================="
        println line
        while ((line = reader.readLine()) != null) println line
      }
    }
  }
}

